package com.system.connect.springboot_flowers.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author yang
 * @since 2025-01-13
 */
@Getter
@Setter
  public class Announcements implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 公告ID
     */
        @TableId(value = "announcement_id", type = IdType.AUTO)
      private Integer announcementId;

      /**
     * 标题
     */
      private String title;

      /**
     * 公告内容
     */
      private String content;

      /**
     * 关联用户ID
     */
      private Integer userId;

      /**
     * 状态
     */
      private String status;

      /**
     * 目标受众
     */
      private String targetAudience;

      /**
     * 开始时间
     */
      private LocalDateTime validFrom;

      /**
     * 结束时间
     */
      private LocalDateTime validUntil;

      /**
     * 逻辑删除
     */
      private Boolean isDelete;

      /**
     * 创建时间
     */
      private LocalDateTime createdAt;
}
